<extend name="Base/common"/>

<block name="style">
    <link href="__CSS__/usercenter.css" rel="stylesheet" type="text/css"/>
</block>

<block name="body">
    <div class="col-md-12 usercenter">
        <div class="uc">
            <include file="_top"/>
            <include file="_top_menu"/>

            <div class="row uc_content">
                <div class="col-md-7 col-xs-12">
                    <div class="row">
                        <div class="col-xs-12 uc_fans" style="margin-left: 10px;">
                            <ul class="nav nav-pills ucenter-tab">
                                <li <eq name="tab" value="rank"> class="active"</eq>><a href="{:U('Ucenter/Index/rank',array('uid'=>$uid))}"

                                    >
                                    已拥有头衔</a></li>
                                <li <eq name="tab" value="rankVerifyWait"> class="active"</eq>><a href="{:U('Ucenter/Index/rankVerifyWait')}"

                                    >
                                    待审核头衔</a></li>
                                <li <eq name="tab" value="rankVerifyFailure"> class="active"</eq>><a href="{:U('Ucenter/Index/rankVerifyFailure')}"

                                    >
                                    申请失败头衔</a></li>
                                <li <eq name="tab" value="rankVerify"> class="active"</eq>><a href="{:U('Ucenter/Index/rankVerify')}"

                                    >
                                    申请头衔</a></li>
                            </ul>

                        </div>
                    </div>
                    <if condition="count($rankList) eq 0">
                        <p class="text-muted"
                           style="text-align: center; font-size: 3em;">
                            <br><br>
                            暂无该可申请头衔哦～
                            <br><br><br>
                        </p>
                        <else/>
                        <div style="margin: 20px 0 20px 20px;">
                            <form class="form-horizontal center_info ajax-form" role="form"
                                  action="{:U('Ucenter/Index/verify')}" method="post">
                                <input type="hidden" name="rank_user_id" value="{$old_rank_user['id']}">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">申请头衔</label>

                                    <div class="col-sm-10">
                                        <volist name="rankList" id="rank">
                                            <div class="col-xs-4 text-center">
                                                <label class="radio-inline">
                                                    <attr>
                                                    <p><img style="width: 18px;height: 18px" src="{$rank.logo|get_cover='path'}"/></p>
                                                    <p> <input type="radio" name="rank_id" value="{$rank.id}" <if condition="$rank['id'] eq $old_rank_user['rank_id']">checked</if>>{$rank.title}</p>

                                                    </attr>
                                                </label>
                                            </div>
                                        </volist>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="reason" class="col-sm-2 control-label">申请理由</label>

                                    <div class="col-sm-10">
                                        <textarea id="reason" name="reason" class="form-control"
                                                  style="width: 100%; height: 6em;resize: none">{$old_rank_user['reason']}</textarea>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" class="btn btn-primary">申请</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </if>
                </div>

                <div class="col-md-5 col-sm-9 col-xs-12 uc_other_link">
                    <include file="_right_link"/>
                </div>
            </div>
        </div>
    </div>
</block>

